package com.mvvm.api;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;
/**
 * 
 * @author Fy
 *
 */
@SpringBootApplication(scanBasePackages="com.mvvm")
@ComponentScan(basePackages ="com.mvvm" )
@ImportResource(
        locations = {"classpath*:dubbo-consumer.xml"}
)
public class ApiApplication extends SpringBootServletInitializer  {
	public static void main(String[] args)  {
		SpringApplication.run(ApiApplication.class, args);
	}
	
//	 @Override
//	    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
//	        return builder.sources(ApiApplication.class);
//	    }
}
